package com.zj.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhangbo
 * @program: PDF-helper
 * @ClassName BaseEntity
 * @description: $
 * @date 2023-05-17 20:49:05
 */
@Data
public class BaseEntity implements Serializable {


    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 创建者Id
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 更新者Id
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;

    /**
     * 删除标志
     */
    @TableLogic
    private Boolean deleteFlag;

    /**
     * 备注
     */
    private String remark;
}
